package example.day07.demo07;

/**
 * @author 多易教育
 **/
public class Test {
    public static void main(String[] args) {

        Phone p = new Phone();

        p.setBrand("苹果");
        p.setColor("黑色");
        p.setPrice(100.0);

        p.sendMessage();
        p.call();
        p.show();

        System.out.println("--------------------------");

        Phone p2 = new Phone("华为","白色",200.0);

        p2.sendMessage();
        p2.call();
        p2.show();
    }
}
